Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

Example Code
~Zach Lopresterakol 10.Nov.03 09:36 AM a Web browser
Domino Server 6.0.1 Windows 2000


Thks guys for all the useful tips :)
I use some code that I got of LDD to wait until the external batch file window looses focus.
This code definately worked but something recently has caused it to start executing in the server console???
If I run the agent manually then it executes successfully by running seperately in its own cmd window?

Now you can have a laugh at my 'simple' code....

RunApp:
Sub RunApp (program$)
structure:
start.cb = Len(start)
ret& = CreateProcessA(0&, program$, 0&, 0&, 1&, NORMAL_PRIORITY_CLASS, 0&, 0&, start, proc)
ret& = WaitForSingleObject(proc.hProcess, INFINITE)
ret& = CloseHandle(proc.hProcess)
End Sub

Initilaze:

'Execute java
Print ( " ")
Print(" *********** Date greater - running java extractor. ***************** ")

'Set current directory using UNC path so extractor can be run from clients
Chdrive "c"
Chdir "c:\utils\doti\extractor\src"
' taskId% = Shell("extractor.bat", 1)
Print " ******* Extractor Opened *********"
RunApp("c:\utils\doti\extractor\src\extractor.bat")
Print " ******* Extractor Closed *********"
qryediflag.SQL = "DELETE FROM XML_FLAG"
resultediflag.Execute
'Vaildation of xml document is performed from extractor program. Therefore the xml file is not created is not valid.

Print " ********** XML FILE Successfully Generated ******* "
End If

Any ideas would be greatly appreciated.

james




LS Agent calling Batch file in Cons... (~Zach Loprester... 7.Nov.03)
. . 2 things (~Ned Frogerogen... 7.Nov.03)
. . . . RE: 2 things (~Emile Zennulit... 7.Nov.03)
. . . . . . RE: 2 things (~Ned Frogerogen... 7.Nov.03)
. . . . . . . . I know, I've seen your code. ;-) eo... (~Emile Zennulit... 8.Nov.03)
. . . . . . . . . . Be careful when you go back to the ... (~Ned Frogerogen... 9.Nov.03)
. . . . . . . . . . . . *LOL. When you least expect it, exp... (~Yentl Quetkrot... 9.Nov.03)
. . . . . . . . . . . . . . Example Code (~Zach Loprester... 10.Nov.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS